/*************************************************************************
	> File Name: mymath.c
	> Author: H.M. Lau
	> Mail: hm.lau@outlook.com
	> Created Time: 2023/09/03 12:55
 ************************************************************************/

#include "mymath.h"

int addToTarget(int from, int to)
{
    int res = 0;
    for (int i = from; i <= to; i++) {
        res += i;
    }
    return res;
}
